namespace Web.Control.WWW.Resources
{
	using System;
	using System.Data;
    using System.Data.SqlClient;
	using System.Drawing;
	using System.Web;
	using System.Web.UI;
	using System.Web.Security;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;
	using System.Text.RegularExpressions;
    using Lx.Web.Common.UI;
	using System.Collections;
	using System.IO;
    using Lx.Web.Common.ControlsUI;
	using System.Xml;
	using System.Xml.Schema;

    using BLF.WWW_WWW.Resource;
    using Model.WWW_WWW.Resource;
    using System.Collections.Generic;
    using System.Text;

    public class ResIndex : BaseControl
	{
        protected System.Web.UI.WebControls.DataList dlResPage;

        //private List<TResourcesModel> TResList = null;

        protected override void OnLoad(EventArgs e)
		{
            if (!Page.IsPostBack)
            {
                using (SqlConnection cn = new SqlConnection(IProvider.Config.WWW_WWW_Resource_Config.DbConnStr))
                {
                    DataTable dt = new DataTable("aa");
                    SqlDataAdapter da = new SqlDataAdapter("select PageID,LanguageLearn,BaseLanguage,PageTitle from T_Resources_Page", cn);
                    da.Fill(dt);
                    if (dlResPage != null)
                    {
                        dlResPage.DataSource = dt;
                        dlResPage.DataBind();
                    }
                }
            }           
        }
	}
}